<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/filesystem.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('filesystem_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">filesystem.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;string&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div>
<p><a href="filesystem_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2cc7cb09746b8181f3389dfee1113f78"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga2cc7cb09746b8181f3389dfee1113f78">absolutePath</a> (const std::string &amp;relative_path)</td></tr>
<tr class="memdesc:ga2cc7cb09746b8181f3389dfee1113f78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a relative path, resolve the absolute path based on the location of the process that calls the function.  <a href="group__filesystem.html#ga2cc7cb09746b8181f3389dfee1113f78">More...</a><br /></td></tr>
<tr class="separator:ga2cc7cb09746b8181f3389dfee1113f78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga09605d11f78fcd2d936793371d1c2ccc"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga09605d11f78fcd2d936793371d1c2ccc">locateFile</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:ga09605d11f78fcd2d936793371d1c2ccc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a list of all the files in the specified directory.  <a href="group__filesystem.html#ga09605d11f78fcd2d936793371d1c2ccc">More...</a><br /></td></tr>
<tr class="separator:ga09605d11f78fcd2d936793371d1c2ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0209cabb0f62f9cfec99a763b5a0bbd1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga0209cabb0f62f9cfec99a763b5a0bbd1">locateFile</a> (const std::string &amp;path, std::vector&lt; std::string &gt; &amp;locations)</td></tr>
<tr class="memdesc:ga0209cabb0f62f9cfec99a763b5a0bbd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Locate a file from a set of locations provided by the user, in addition to common system locations such as "/opt" and "/usr/local".  <a href="group__filesystem.html#ga0209cabb0f62f9cfec99a763b5a0bbd1">More...</a><br /></td></tr>
<tr class="separator:ga0209cabb0f62f9cfec99a763b5a0bbd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa032b1df8daa37cc992f30f7b0bf29a7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gaa032b1df8daa37cc992f30f7b0bf29a7">fileExists</a> (const char *path, bool regularFilesOnly=false)</td></tr>
<tr class="memdesc:gaa032b1df8daa37cc992f30f7b0bf29a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verify path and return true if the file exists.  <a href="group__filesystem.html#gaa032b1df8daa37cc992f30f7b0bf29a7">More...</a><br /></td></tr>
<tr class="separator:gaa032b1df8daa37cc992f30f7b0bf29a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1cce1a89b61cff6664fee0bb89fa2ee9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga1cce1a89b61cff6664fee0bb89fa2ee9">fileSize</a> (const char *path)</td></tr>
<tr class="memdesc:ga1cce1a89b61cff6664fee0bb89fa2ee9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the size (in bytes) of the specified file.  <a href="group__filesystem.html#ga1cce1a89b61cff6664fee0bb89fa2ee9">More...</a><br /></td></tr>
<tr class="separator:ga1cce1a89b61cff6664fee0bb89fa2ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d60da122af0d3e44fe78b4ac73444a1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga9d60da122af0d3e44fe78b4ac73444a1">filePath</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:ga9d60da122af0d3e44fe78b4ac73444a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract the path out of the supplied string, removing the filename and extension For example, <code>filePath("~/user/somefile.xml")</code> would return <code>~/user</code>  <a href="group__filesystem.html#ga9d60da122af0d3e44fe78b4ac73444a1">More...</a><br /></td></tr>
<tr class="separator:ga9d60da122af0d3e44fe78b4ac73444a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga45ff5e488382fe54d24f27d340fcb5d2"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga45ff5e488382fe54d24f27d340fcb5d2">fileExtension</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:ga45ff5e488382fe54d24f27d340fcb5d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract the file extension from the path.  <a href="group__filesystem.html#ga45ff5e488382fe54d24f27d340fcb5d2">More...</a><br /></td></tr>
<tr class="separator:ga45ff5e488382fe54d24f27d340fcb5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaad68e41c1ebdc261ba49694e18eb8d15"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gaad68e41c1ebdc261ba49694e18eb8d15">fileRemoveExtension</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:gaad68e41c1ebdc261ba49694e18eb8d15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the input string with the file extension removed For example, <code>strRemoveExtension("~/user/somefile.xml")</code> would return <code>~/user/somefile</code>.  <a href="group__filesystem.html#gaad68e41c1ebdc261ba49694e18eb8d15">More...</a><br /></td></tr>
<tr class="separator:gaad68e41c1ebdc261ba49694e18eb8d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac5d5187920a9c4e1743dbd0b57ea8294"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gac5d5187920a9c4e1743dbd0b57ea8294">fileChangeExtension</a> (const std::string &amp;filename, const std::string &amp;newExtension)</td></tr>
<tr class="memdesc:gac5d5187920a9c4e1743dbd0b57ea8294"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the input string with a changed file extension For example, <code>strChangeExtension("~/user/somefile.xml", "zip")</code> would return <code>~/user/somefile.zip</code>.  <a href="group__filesystem.html#gac5d5187920a9c4e1743dbd0b57ea8294">More...</a><br /></td></tr>
<tr class="separator:gac5d5187920a9c4e1743dbd0b57ea8294"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5f5bdf6b25f89fe18d5e93191cb1fd5"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gad5f5bdf6b25f89fe18d5e93191cb1fd5">processPath</a> ()</td></tr>
<tr class="memdesc:gad5f5bdf6b25f89fe18d5e93191cb1fd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the absolute path that of the calling process executable, include the process executable's filename.  <a href="group__filesystem.html#gad5f5bdf6b25f89fe18d5e93191cb1fd5">More...</a><br /></td></tr>
<tr class="separator:gad5f5bdf6b25f89fe18d5e93191cb1fd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga57173fd6b52c0927a912961347c21ac9"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga57173fd6b52c0927a912961347c21ac9">processDirectory</a> ()</td></tr>
<tr class="memdesc:ga57173fd6b52c0927a912961347c21ac9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the directory that the calling process resides in.  <a href="group__filesystem.html#ga57173fd6b52c0927a912961347c21ac9">More...</a><br /></td></tr>
<tr class="separator:ga57173fd6b52c0927a912961347c21ac9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7587e5be3b694cbb4d0003eeb64ed365"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga7587e5be3b694cbb4d0003eeb64ed365">workingDirectory</a> ()</td></tr>
<tr class="memdesc:ga7587e5be3b694cbb4d0003eeb64ed365"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current working directory of the calling process.  <a href="group__filesystem.html#ga7587e5be3b694cbb4d0003eeb64ed365">More...</a><br /></td></tr>
<tr class="separator:ga7587e5be3b694cbb4d0003eeb64ed365"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="filesystem_8h.html">filesystem.h</a></li>
    <li class="footer">Generated on Fri Jun 21 2019 16:23:15 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
